﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <p>此示例为了验证如下几个问题：</p>
    <ul>
        <li>数值类型是值类型。</li>
        <li>数值的字面量是值类型。</li>
    </ul>
</body>
</html>
<script type="text/javascript">
    console.log(typeof (2));
    console.log(typeof (new Number(2)));
    console.log(2 == 2);
    console.log(new Number(2) == new Number(2));
    console.log(new Number(2) == 2);
    console.log(2 == new Number(2));
</script>
